package com.example.springsecurityjwt.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author abbys
 */

@RestController
public class HelloController {


    /**
     * user角色可以访问
     * @return
     */
    @GetMapping("/hello")
    public String hello() {
        return "hello jwt !";
    }

    /**
     * admin角色可以访问
     * @return
     */
    @GetMapping("/admin")
    public String admin() {
        return "hello admin !";
    }


}
